package day2171127;

public class StringExample6 {
    public static void main(String[] args) {
        String s[]={"ab","c","d"};
        reverse(s);
        System.out.println("s[0]="+s[0]+" s[1]="+s[1]);
    }
    static void  reverse(String s[]){
        String s0;

        s0=s[1];
        s[1]=s[0];
        s[0]=s0;

    }
}
